package cn.xwt.weidisk.constant;

/**
 * @author 薛慰涛
 */

public enum ErrorCode {

    /**
     * 错误码
     */
    SUCCESS("00000", "操作成功"),
    USERNAME_VERIFICATION_FAILED("A0110", "用户名校检失败"),
    PASSWORD_VERIFICATION_FAILED("A0120", "密码校检失败"),
    USERNAME_ALREADY_EXISTS("A0111", "用户名已存在"),
    INCORRECT_VERIFICATION_CODE("A0130", "验证码输入错误"),
    USER_REQUEST_PARAMETER_ERROR("A0400", "用户请求参数错误"),
    INVALID_USER_INPUT("A0402", "无效的用户输入"),
    USER_UPLOAD_FILE_EXCEPTION("A0700", "用户上传文件异常"),
    USER_OPERATION_EXCEPTION("A0440", "用户操作异常"),
    USER_OBJECT_STORAGE_CAPACITY_INSUFFICIENT("A0604", "用户对象存储容量不足"),
    USER_LOGIN_EXCEPTION("A0200", "用户登录异常");



    private final String code;
    private final String desc;

    private ErrorCode(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }


    @Override
    public String toString() {
        return code;
    }
}
